inherited dtmxs_OrderTrace: Tdtmxs_OrderTrace
  OldCreateOrder = True
  Left = 576
  Top = 179
  Height = 712
  Width = 954
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'Select * from V_xs_OrderDetail'
    Left = 72
    object adsMasterOrderID: TStringField
      DisplayLabel = #35746#21333'ID'
      FieldName = 'OrderID'
    end
    object adsMasterOrderNo: TStringField
      DisplayLabel = #35746#21333#32534#21495
      FieldName = 'OrderNo'
    end
    object adsMasterOrderDate: TDateTimeField
      DisplayLabel = #35746#21333#26085#26399
      FieldName = 'OrderDate'
    end
    object adsMasterOrderType: TStringField
      FieldName = 'OrderType'
    end
    object adsMasterOrderTypename: TStringField
      DisplayLabel = #35746#21333#31867#22411
      FieldName = 'OrderTypename'
      Size = 50
    end
    object adsMasterOrderStatus: TStringField
      FieldName = 'OrderStatus'
    end
    object adsMasterOrderStatusname: TStringField
      DisplayLabel = #35746#21333#29366#24577
      FieldName = 'OrderStatusname'
      Size = 50
    end
    object adsMasterOrderKind: TStringField
      FieldName = 'OrderKind'
    end
    object adsMasterOrderKindname: TStringField
      DisplayLabel = #19979#21333#26041#24335
      FieldName = 'OrderKindname'
      Size = 50
    end
    object adsMasterSaleType: TStringField
      FieldName = 'SaleType'
    end
    object adsMasterSaleTypeName: TStringField
      DisplayLabel = #38144#21806#31867#22411
      FieldName = 'SaleTypeName'
      Size = 50
    end
    object adsMasterFetchType: TStringField
      DisplayLabel = #20132#36135#26041#24335
      FieldName = 'FetchType'
    end
    object adsMasterFetchTypeName: TStringField
      DisplayLabel = #20132#36135#26041#24335
      FieldName = 'FetchTypeName'
      Size = 50
    end
    object adsMasterFetchAddress: TStringField
      DisplayLabel = #20132#36135#22320#22336
      FieldName = 'FetchAddress'
      Size = 80
    end
    object adsMasterEmpName: TStringField
      DisplayLabel = #19994#21153#21592
      FieldName = 'EmpName'
    end
    object adsMasterDeptID: TStringField
      DisplayLabel = #20844#21496'ID'
      FieldName = 'DeptID'
    end
    object adsMasterDataType: TStringField
      DisplayLabel = #21333#25454#31867#22411
      FieldName = 'DataType'
    end
    object adsMasterHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterID: TStringField
      FieldName = 'ID'
    end
    object adsMasterOrderDetailNo: TStringField
      DisplayLabel = #35746#21333#26126#32454#21495
      FieldName = 'OrderDetailNo'
    end
    object adsMasterCustID: TStringField
      DisplayLabel = #23458#25143'ID'
      FieldName = 'CustID'
    end
    object adsMasterCustCode: TStringField
      DisplayLabel = #23458#25143#32534#30721
      FieldName = 'CustCode'
    end
    object adsMasterCustShortName: TStringField
      DisplayLabel = #23458#25143#21517#31216
      FieldName = 'CustShortName'
    end
    object adsMasterCustFullName: TStringField
      DisplayLabel = #23458#25143#20840#31216
      FieldName = 'CustFullName'
      Size = 50
    end
    object adsMasterProductID: TStringField
      DisplayLabel = #29289#26009'ID'
      FieldName = 'ProductID'
    end
    object adsMasterProductCode: TStringField
      DisplayLabel = #29289#26009#32534#30721
      FieldName = 'ProductCode'
      Size = 50
    end
    object adsMasterProductName: TStringField
      DisplayLabel = #29289#26009#21517#31216
      FieldName = 'ProductName'
      Size = 200
    end
    object adsMasterSpecs: TStringField
      DisplayLabel = #22411#21495#35268#26684
      FieldName = 'Specs'
      Size = 200
    end
    object adsMasterColorID: TStringField
      DisplayLabel = #33394#21495'ID'
      FieldName = 'ColorID'
    end
    object adsMasterColorCode: TStringField
      DisplayLabel = #33394#21495
      FieldName = 'ColorCode'
    end
    object adsMasterColorName: TStringField
      DisplayLabel = #39068#33394
      FieldName = 'ColorName'
      Size = 50
    end
    object adsMasterPieceCount: TFloatField
      DisplayLabel = #19979#21333#20214#25968
      FieldName = 'PieceCount'
    end
    object adsMasterNumber: TFloatField
      DisplayLabel = #19979#21333#25968#37327
      FieldName = 'Number'
    end
    object adsMasterUnitID: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
    end
    object adsMasterUnitName: TStringField
      DisplayLabel = #21333#20301
      FieldName = 'UnitName'
    end
    object adsMasterPrice: TFloatField
      DisplayLabel = #21333#20215
      FieldName = 'Price'
    end
    object adsMasterMoney: TFloatField
      DisplayLabel = #37329#39069
      FieldName = 'Money'
    end
    object adsMasterCostMoney: TFloatField
      DisplayLabel = #25104#26412#37329#39069
      FieldName = 'CostMoney'
    end
    object adsMasterProfitMoney: TFloatField
      DisplayLabel = #27611#21033
      FieldName = 'ProfitMoney'
    end
    object adsMasterOrderNumber: TFloatField
      DisplayLabel = #35746#21333#25968#37327'(KG)'
      FieldName = 'OrderNumber'
    end
    object adsMasterPlanStatus: TStringField
      DisplayLabel = #25490#20135#29366#24577
      FieldName = 'PlanStatus'
    end
    object adsMasterPlanNumber: TFloatField
      DisplayLabel = #25490#20135#25968#37327'(KG)'
      FieldName = 'PlanNumber'
    end
    object adsMasterSparePlanNumber: TFloatField
      DisplayLabel = #21097#20313#25490#20135#25968#37327'(KG)'
      FieldName = 'SparePlanNumber'
      ReadOnly = True
    end
    object adsMasterRequestDate: TDateTimeField
      DisplayLabel = #25104#21697#20132#26399
      FieldName = 'RequestDate'
    end
    object adsMasterStatus: TIntegerField
      DisplayLabel = #29366#24577
      FieldName = 'Status'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #35746#21333#22791#27880
      FieldName = 'Remark'
      Size = 500
    end
    object adsMasterDetailRemark: TStringField
      DisplayLabel = #35746#21333#26126#32454#22791#27880
      FieldName = 'DetailRemark'
      Size = 500
    end
    object adsMasterHasDestory: TBooleanField
      DisplayLabel = #38144#21333#21542
      FieldName = 'HasDestory'
    end
    object adsMasterDestorier: TStringField
      DisplayLabel = #38144#21333#20154
      FieldName = 'Destorier'
    end
    object adsMasterDestoryTime: TDateTimeField
      DisplayLabel = #38144#21333#26102#38388
      FieldName = 'DestoryTime'
    end
    object adsMasterDestoryRemark: TStringField
      DisplayLabel = #38144#21333#35828#26126
      FieldName = 'DestoryRemark'
      Size = 50
    end
    object adsMasterInStockStatus: TStringField
      DisplayLabel = #25104#21697#20837#24211#29366#24577
      FieldName = 'InStockStatus'
    end
    object adsMasterInStockStatusName: TStringField
      DisplayLabel = #20837#24211#29366#24577
      FieldName = 'InStockStatusName'
      Size = 50
    end
    object adsMasterInStockNumber: TFloatField
      DisplayLabel = #25104#21697#20837#24211#25968
      FieldName = 'InStockNumber'
    end
    object adsMasterInStockdate: TDateTimeField
      DisplayLabel = #26368#21518#20837#24211#26085#26399
      FieldName = 'InStockdate'
    end
    object adsMasterSendInformNumber: TFloatField
      DisplayLabel = #21457#36135#36890#30693#25968
      FieldName = 'SendInformNumber'
    end
    object adsMasterSendInformStatus: TStringField
      FieldName = 'SendInformStatus'
    end
    object adsMasterSendInformDate: TDateTimeField
      FieldName = 'SendInformDate'
    end
    object adsMasterOutStockDate: TDateTimeField
      DisplayLabel = #26368#21518#20986#24211#26085#26399
      FieldName = 'OutStockDate'
    end
    object adsMasterOutStockStatus: TStringField
      DisplayLabel = #25104#21697#20986#24211#29366#24577
      FieldName = 'OutStockStatus'
    end
    object adsMasterOutStockStatusName: TStringField
      DisplayLabel = #20986#24211#29366#24577
      FieldName = 'OutStockStatusName'
      Size = 50
    end
    object adsMasterOutStockNumber: TFloatField
      DisplayLabel = #25104#21697#20986#24211#25968
      FieldName = 'OutStockNumber'
    end
    object adsMasterProcessID: TStringField
      DisplayLabel = #24403#21069#29983#20135#24037#24207'ID'
      FieldName = 'ProcessID'
    end
    object adsMasterProcessName: TStringField
      DisplayLabel = #24403#21069#29983#20135#24037#24207
      FieldName = 'ProcessName'
      Size = 50
    end
    object adsMasterProcessTime: TDateTimeField
      DisplayLabel = #24403#21069#29983#20135#26102#38388
      FieldName = 'ProcessTime'
    end
    object adsMasterProcessSpecsID: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009'ID'
      FieldName = 'ProcessSpecsID'
    end
    object adsMasterProcessSpecsCode: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#32534#30721
      FieldName = 'ProcessSpecsCode'
      Size = 50
    end
    object adsMasterProcessSpecsName: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#21517#31216
      FieldName = 'ProcessSpecsName'
      Size = 100
    end
    object adsMasterProcessSpecs: TStringField
      DisplayLabel = #21152#24037#21518#29289#26009#22411#21495#35268#26684
      FieldName = 'ProcessSpecs'
      Size = 200
    end
    object adsMasterProduceRequest: TStringField
      DisplayLabel = #29983#20135#35201#27714
      FieldName = 'ProduceRequest'
      Size = 500
    end
    object adsMasterPackRequest: TStringField
      DisplayLabel = #21253#35013#35201#27714
      FieldName = 'PackRequest'
      Size = 500
    end
  end
  inherited frdsMain: TfrDBDataSet
    Left = 64
    Top = 128
  end
  inherited adsMasterEdit: TADODataSet
    Left = 232
    Top = 24
  end
  inherited frdsMasterEdit: TfrDBDataSet
    Left = 64
    Top = 192
  end
  object adsOrderType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select * from V_xs_OrderType'
    Parameters = <>
    Left = 216
    Top = 80
  end
  object adsUserCompany: TADODataSet
    Connection = dtmConnect.conMain
    LockType = ltBatchOptimistic
    CommandText = 
      'select b.DeptID, b.DeptCode, b.DeptName from xt_CompanySet a '#13#10'j' +
      'oin da_Department b on a.CompanyID=b.DeptID'#13#10'where a.UserID=(sel' +
      'ect UserID from xt_Users where UserCode=:UserCode)'
    Parameters = <
      item
        Name = 'UserCode'
        Size = -1
        Value = Null
      end>
    Left = 328
    Top = 40
  end
  object adsProcess: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ProcessID, ProcessCode, ProcessName from V_da_Process'
    Parameters = <>
    Left = 200
    Top = 248
    object adsProcessProcessID: TStringField
      DisplayLabel = 'ID'
      FieldName = 'ProcessID'
    end
    object adsProcessProcessCode: TStringField
      DisplayLabel = #32534#30721
      FieldName = 'ProcessCode'
    end
    object adsProcessProcessName: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'ProcessName'
      Size = 50
    end
  end
  object adsOrderProcessDetail: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select * from xs_OrderProcessDetail where 0=1'
    Parameters = <>
    Left = 536
    Top = 88
    object adsOrderProcessDetailID: TAutoIncField
      FieldName = 'ID'
      ReadOnly = True
    end
    object adsOrderProcessDetailDeptID: TStringField
      DisplayLabel = #20844#21496'ID'
      FieldName = 'DeptID'
    end
    object adsOrderProcessDetailProcessOrderID: TIntegerField
      DisplayLabel = #24207#21495
      FieldName = 'ProcessOrderID'
    end
    object adsOrderProcessDetailProcessID: TStringField
      DisplayLabel = #24037#24207'ID'
      FieldName = 'ProcessID'
    end
    object adsOrderProcessDetailSourceBillNo: TStringField
      DisplayLabel = #28304#21333#32534#21495
      FieldName = 'SourceBillNo'
    end
    object adsOrderProcessDetailSourceBillDetailNo: TStringField
      DisplayLabel = #28304#21333#26126#32454#32534#21495
      FieldName = 'SourceBillDetailNo'
      Size = 50
    end
    object adsOrderProcessDetailCustOrderNo: TStringField
      DisplayLabel = #23458#25143#35746#21333#21495
      FieldName = 'CustOrderNo'
    end
    object adsOrderProcessDetailCustOrderDetailNo: TStringField
      DisplayLabel = #23458#25143#35746#21333#26126#32454#21495
      FieldName = 'CustOrderDetailNo'
      Size = 50
    end
    object adsOrderProcessDetailCustID: TStringField
      DisplayLabel = #23458#25143'ID'
      FieldName = 'CustID'
    end
    object adsOrderProcessDetailSupplyID: TStringField
      DisplayLabel = #20379#24212#21830'ID'
      FieldName = 'SupplyID'
    end
    object adsOrderProcessDetailProjectNo: TStringField
      DisplayLabel = #21345#21495'/'#32568#21495
      FieldName = 'ProjectNo'
      Size = 50
    end
    object adsOrderProcessDetailProductID: TStringField
      DisplayLabel = #29289#26009'ID'
      FieldName = 'ProductID'
    end
    object adsOrderProcessDetailProductCode: TStringField
      DisplayLabel = #29289#26009#32534#30721
      FieldName = 'ProductCode'
      Size = 50
    end
    object adsOrderProcessDetailProductName: TStringField
      DisplayLabel = #29289#26009#21517#31216
      FieldName = 'ProductName'
      Size = 100
    end
    object adsOrderProcessDetailSpecs: TStringField
      DisplayLabel = #22411#21495#35268#26684
      FieldName = 'Specs'
      Size = 200
    end
    object adsOrderProcessDetailColorID: TStringField
      DisplayLabel = #33394#21495'ID'
      FieldName = 'ColorID'
    end
    object adsOrderProcessDetailColorCode: TStringField
      DisplayLabel = #33394#21495
      FieldName = 'ColorCode'
    end
    object adsOrderProcessDetailColorName: TStringField
      DisplayLabel = #39068#33394
      FieldName = 'ColorName'
      Size = 50
    end
    object adsOrderProcessDetailOrderPieceCount: TBCDField
      DisplayLabel = #20214#25968
      FieldName = 'OrderPieceCount'
      Precision = 18
      Size = 2
    end
    object adsOrderProcessDetailOrderNumber: TBCDField
      DisplayLabel = #19979#21333#25968#37327
      FieldName = 'OrderNumber'
      Precision = 18
      Size = 2
    end
    object adsOrderProcessDetailOrderUnitID: TStringField
      DisplayLabel = #19979#21333#21333#20301'ID'
      FieldName = 'OrderUnitID'
    end
    object adsOrderProcessDetailSendPieceCount: TBCDField
      DisplayLabel = #21457#20986#20214#25968
      FieldName = 'SendPieceCount'
      Precision = 18
      Size = 2
    end
    object adsOrderProcessDetailSendNumber: TBCDField
      DisplayLabel = #21457#20986#25968#37327'(KG)'
      FieldName = 'SendNumber'
      Precision = 18
      Size = 2
    end
    object adsOrderProcessDetailUnitID: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
    end
    object adsOrderProcessDetailProcessPrice: TBCDField
      DisplayLabel = #21152#24037#21333#20215
      FieldName = 'ProcessPrice'
      Precision = 18
      Size = 3
    end
    object adsOrderProcessDetailProcessMemo: TWideStringField
      DisplayLabel = #21152#24037#35201#27714
      FieldName = 'ProcessMemo'
      Size = 500
    end
    object adsOrderProcessDetailWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsOrderProcessDetailWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsOrderProcessDetailModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsOrderProcessDetailModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsOrderProcessDetailRemark: TWideStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
    object adsOrderProcessDetailres_ProcessName: TStringField
      DisplayLabel = #24037#24207
      FieldKind = fkLookup
      FieldName = 'res_ProcessName'
      LookupKeyFields = 'ProcessID'
      LookupResultField = 'ProcessName'
      KeyFields = 'ProcessID'
      Size = 50
      Lookup = True
    end
    object adsOrderProcessDetailres_UnitName: TStringField
      DisplayLabel = #35745#20215#21333#20301
      FieldKind = fkLookup
      FieldName = 'res_UnitName'
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'UnitID'
      Lookup = True
    end
    object adsOrderProcessDetailres_CustName: TStringField
      DisplayLabel = #23458#25143#21517#31216
      FieldKind = fkLookup
      FieldName = 'res_CustName'
      LookupKeyFields = 'CustID'
      LookupResultField = 'CustShortName'
      KeyFields = 'CustID'
      Size = 50
      Lookup = True
    end
    object adsOrderProcessDetailres_SupplyName: TStringField
      DisplayLabel = #20379#24212#21830#21517#31216
      FieldKind = fkLookup
      FieldName = 'res_SupplyName'
      LookupKeyFields = 'SupplyID'
      LookupResultField = 'SupplyShortName'
      KeyFields = 'SupplyID'
      Size = 50
      Lookup = True
    end
    object adsOrderProcessDetailres_OrderUnitName: TStringField
      DisplayLabel = #19979#21333#21333#20301
      FieldKind = fkLookup
      FieldName = 'res_OrderUnitName'
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'OrderUnitID'
      Lookup = True
    end
  end
end
